package org.stephen.recommend.enums;

/**
 * ClassName: ClassInfo
 * Description:
 * Date: 2020/12/15 18:00
 *
 * @author stephen.qiu
 * @version 1.0
 */

public enum ClassInfo {
    ENTERTAINMENT("娱乐", "d21ce2ec20ac11ea81f900163e0c1d31"),
    TECHNOLOGY("科技", "d21ce63d20ac11ea81f900163e0c1d31"),
    FINANCE("财经", "d21ce71420ac11ea81f900163e0c1d31"),
    MILITARY("军事", "d21ce7ae20ac11ea81f900163e0c1d31"),
    SPORT("体育", "d21ce83e20ac11ea81f900163e0c1d31"),
    HEALTH("健康", "d21ce8cb20ac11ea81f900163e0c1d31"),
    CULTURE("文化", "d21ce95820ac11ea81f900163e0c1d31"),
    ANIMAL("动物", "d21cea2b20ac11ea81f900163e0c1d31"),
    FASHION("时尚", "d21ceabe20ac11ea81f900163e0c1d31"),
    FUN("搞笑", "d21cebd820ac11ea81f900163e0c1d31"),
    FOOD("美食", "d21cec5d20ac11ea81f900163e0c1d31"),
    TRAVEL("旅游", "d21cece220ac11ea81f900163e0c1d31"),
    GAME("游戏", "d21cee7d20ac11ea81f900163e0c1d31"),
    CAR("汽车", "5d6fcdfc87d34e208775bbc632e1d693"),
    INTERNATION("国际", "f444596764d341ed8ceb8c5c30f79e62"),
    ANIME("动漫", "851701e31855467d8b49322d62d2f3b5");

    private String className;

    private String classId;

    ClassInfo(String className, String classId) {
        this.className = className;
        this.classId = classId;
    }

    public String getClassName() {
        return this.className;
    }

    public String getClassId() {
        return this.classId;
    }

    public static String getClassNameById(String classId) {
        for (ClassInfo classInfo : ClassInfo.values()) {
            if (classInfo.classId.equals(classId)) {
                return classInfo.getClassName();
            }
        }
        return null;
    }
}
